package org.test;


public class Client {
	public static void main(String[] args) {
		byte[] x1 = new byte[2];
		x1[0] = 15;
		x1[0] = 20;
		byte[] x2 = new byte[2];
		x2[0] = 15;
		x2[0] = 21;
		System.out.println(compareBytes(x1, x2));
	}
	private static boolean compareBytes(byte[] x,byte[] y)
	{
		if(x.length != y.length)
			return false;
		for (int i = 0; i < y.length; i++) {
			if(x[i] != y[i])
			    return false;
		}
		return true;
	}
}
